<template>
	<view>
		<view>
			<button type="primary" @click="chooseImg">头像上传</button>
			<image v-for="item in imgArr" :src="item"></image>
		</view>
		<view>
			<test></test>
			<test-a></test-a>
			<test-b></test-b>
		</view>
	</view>
</template>

<script>
	//引入组件
	import test from '../../components/test.vue'
	import testA from '../../components/a.vue'
	import testB from '../../components/b.vue'
	
	export default {
		data() {
			return {
				imgArr:[]
			}
		},
		onLoad() {

		},
		methods: {
			chooseImg(){
				uni.chooseImage({
					count:3,
					success: (res) => {
						this.imgArr= res.tempFilePaths
					}
				})
			}
		},
		components:{
			test:test,
			"test-a":testA,
			"test-b":testB
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
